package com.example.chessbattleplatform.web.chess_rooms.Pojo.Enum;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum RoomUserEnum implements IEnum<String> {
    // 房主
    ROOM_OWNER("ROOM_OWNER"),

    // 玩家
    GAMER("GAMER"),

    // 观众
    SPECTATOR("SPECTATOR");

    @EnumValue
    private final String message;

    @Override
    public String getValue() {
        return this.getMessage();
    }


    @Override
    public String toString() {
        return message;
    }
}
